﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using CreditAgricole.Application;

namespace CreditAgricole.PageCodeBehind
{
    public class UpdateListItem : UserControl
    {
        protected TextBox txtTitle;
        protected TextBox txtName;
        protected TextBox txtDesc;
        protected TextBox txtImpact;

        public string TitleToUpdate
        {
            get { return txtTitle.Text; }
            set { txtTitle.Text = value; }
        }
        public string DescToUpdate
        {
            get { return txtDesc.Text; }
            set { txtTitle.Text = value; }
        }
        public string ImpactToUpdate
        {
            get { return txtImpact.Text; }
            set { txtImpact.Text = value; }
        }

        public VOMep mepToUpdate;

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            TitleToUpdate = mepToUpdate.Title;
            DescToUpdate = mepToUpdate.Description;
            ImpactToUpdate = mepToUpdate.Impact;
        }
    }
}
